<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="FBGraph.Web.Mvc.FBGraphViewPage<DetailData>" %>

<asp:Content ID="t" ContentPlaceHolderID="TitleContent" runat="server"><%= Model.Group.Name %></asp:Content>

<asp:Content ID="c" ContentPlaceHolderID="MainContent" runat="server">

    <h2><%= Model.Group.Name %></h2>
    
    <div class="owner">
        <label>Owner:</label>
        <%= Html.Picture(Model.Group.Owner.Id, Model.Group.Owner.Name) %>
        <%= Html.ActionLink(Model.Group.Owner.Name, "detail", "profile", new { id = Model.Group.Owner.Id }, null) %>
    </div>
    
    <p class="description"><%= Model.Group.Description %></p>
    
    <div class="section feed">
        <h3>Feed</h3>        
        <% foreach (var post in Model.Feed.Data) Html.RenderPartial("Post", post); %>
    </div>
    
    <div class="section user-list">
        <h3>Members</h3>
        <div class="content">
            <ul class="user-list">
                <% foreach (var member in Model.Members) { %>                
                <li>
                    <%= Html.Picture(member.Id, member.Name) %>
                    <p><%= Html.ActionLink(member.Name, "detail", "profile", new { id = member.Id }, null) %></p>
                </li>
                <% } %>
                <br class="clear" />
            </ul>
        </div>
    </div>
    
    <br class="clear" />

</asp:Content>
